shortcut method of mean calculation